package com.liruirui.springboot_exam.controller;


import com.liruirui.springboot_exam.config.AjaxResult;
import com.liruirui.springboot_exam.service.IAuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author liruirui
 * @since 2022-02-09
 */
@RestController
@RequestMapping("/audit")
public class AuditController {

    @Autowired
    IAuditService auditService;

    @RequestMapping("/getAudit")
    public AjaxResult getAudit(){
        return AjaxResult.ok(auditService.list());
    }

}
